package com.scoremg.annotation;


import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface GlobalInterceptor {

    /**
     * 检验登录
     */
    boolean checkLogin() default true;

    /**
     * 检验管理员
     */
    boolean checkAdmin() default false;

}
